import request from "@/utils/request";

const CommonAPI = {
  /** 获取省份信息*/
  proList(data: any) {
    return request({
      url: `/admin/common/province`,
      method: "post",
      data,
      headers: {
        "Content-Type": "application/json",
      },
    });
  },
  /** 获取城市信息*/
  cityList(data: any) {
    return request({
      url: `/admin/common/city`,
      method: "post",
      data,
      headers: {
        "Content-Type": "application/json",
      },
    });
  },
  /** 获取区县信息*/
  areaList(data: any) {
    return request({
      url: `/admin/common/area`,
      method: "post",
      data,
      headers: {
        "Content-Type": "application/json",
      },
    });
  },
};

export default CommonAPI;
